
public abstract class AbsDatabase {
	
	//gets all the bank accounts for a userID, if permissions are clerk or admin, all accounts are returned 
	static public BankAccount[] getAccounts(int userID,int permissions){
		return DatabaseSupportStubs.getAccounts(userID,permissions);
	}
	
	//updates an account to match every field in the BankAccount parameter
	static public boolean updateAccount(BankAccount account, int accountNum){
		return DatabaseSupportStubs.updateAccount(account, accountNum);
	}
	
	
	
	// Login Support
	
	//checks to see if username is in the DB and that the password matches
	static public boolean checkCreds(String user,String pass){
		return DatabaseSupportStubs.checkCreds(user,pass);
	}
	
	//retrives the permission code for a userId
	// 0 = Invalid
	// 1 = Admin
	// 2 = Teller
	// 3 = User
	static public int getPermissions(String username){
		return DatabaseSupportStubs.getPermissions(username);
	}
	
	static public int getUserID(String username){
		return DatabaseSupportStubs.getUserID(username);
	}
	
}
